import { createRoot } from 'react-dom/client'
import { RouterProvider } from 'react-router-dom'
import router from './router/index.tsx'
import { fetchChannelApi } from './apis/list.ts'

// 测试接口
fetchChannelApi().then(res => {
  console.log(res.data.data.channels)
})

createRoot(document.getElementById('root')!).render(
    <RouterProvider router={router}/>
)
